app.factory('InfoUserLoginService',function ($http,$q,$resource,$cookieStore, serviceUtil, ACTIONS, METHODS, URL) {

	var loginUrl = URL.BASEURL + '/login'
	var factory = {};


	factory.login = function (user) {
		return serviceUtil.excute(loginUrl,user,METHODS.login);
	};
	factory.updatePw = function (newPw) {
		initParam();
		param.newPw = newPw;
		return serviceUtil.excute(URL.BASEURL + URL.USERURL + 'updatePw' ,param,METHODS.put);
	};
	return factory;
});

